package com.ftg.learn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author kangjx
 * @since 2023-04-28
 */
@Data
@TableName("sys_role")
@ApiModel(value = "Role对象", description = "角色表")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("角色名")
    @TableField("role_name")
    private String name;

    @ApiModelProperty("角色key值")
    @TableField("role_key")
    private String roleKey;

    @ApiModelProperty("角色描述")
    @TableField("role_desc")
    private String roleDesc;

    @ApiModelProperty("角色创建时间")
    @TableField("gmt_create")
    private LocalDateTime createTime;

    @ApiModelProperty("角色更新时间")
    @TableField("gmt_modified")
    private LocalDateTime updateTime;

    @ApiModelProperty("角色状态(1代表启用,0代表禁用)")
    @TableField("role_status")
    private String status = "1";
}
